<template>
	<view class="content">
		<view class="title">
			<image src="../../static/images/gongshang.png" mode=""></image>
			<view>
				<text>工商银行</text>
				<text>6224**********62254</text>
			</view>
		</view>
		<border></border>
		<!-- 提现金额 -->
		<view class="txje">
			<view>
				<text>提现金额</text>
			</view>
			<view>
				<input type="number" v-model:value="money">
			</view>
			<view> <text>可提现金额 25150.54</text></view>
		</view>

		<!-- 按钮 -->
		<view class="footer">
			<button :disabled="flag" :style="{backgroundColor:bg}" class="btn">申请提现</button>
		</view>
	</view>
</template>

<script>
	import border from '../../components/border.vue'
	export default {
		data() {
			return {
				money: '0.00',
				bg: 'red',
				flag: false
			}
		},
		methods: {

		},

		components: {
			border
		},
		watch: {
			money(n, o) {
				if (n !== '') {
					this.bg = 'red'
					this.flag = false
				} else {
					this.bg = '#F27F88'
					this.flag = true
				}
			}
		},

	}
</script>

<style scoped lang="scss">
	// 按钮
	.footer {
		width: 690upx;
		height: 80upx;
		box-sizing: border-box;
		margin: 0 auto;
		padding: 60upx 0;

		.btn {
			color: white;
		}
	}

	.txje view:nth-child(1) {
		color: #999999;
		font-size: 28upx;
	}

	.txje view:nth-child(2) {
		border-bottom: 1px solid #ececec;

		input {
			line-height: 37upx;
			letter-spacing: 0rpx;
			color: #222222;
			font-size: 56upx;
		}
	}


	.txje view:nth-child(3) {
		color: #999999;
		font-size: 26upx;
	}

	.title view text:nth-child(2) {
		color: #333333;
		font-size: 26upx;
	}

	.txje {
		display: flex;
		flex-direction: column;
		box-sizing: border-box;
		padding: 0 30upx;
		background-color: #fff;
		height: 276upx;

		view {
			flex: 1;
			display: flex;
			align-items: center;

		}
	}

	/* 体现金额 */
	.title view text:nth-child(1) {
		font-size: 30upx;
		letter-spacing: 1rpx;
		color: #333333;
	}

	.title view text:nth-child(1) {
		letter-spacing: 1rpx;
		color: #333333;
		font-size: 26upx;
	}

	.title {
		display: flex;
		height: 123upx;
		box-sizing: border-box;
		padding: 0 30upx;
		align-items: center;
		background-color: #fff;

		image {
			width: 71upx;
			height: 73upx;
			margin-right: 10upx;
		}

		view {
			display: flex;
			flex-direction: column;
		}
	}
	page {
		background-color: #F2F1F2;
	}

</style>
